package dataFromXml;

import java.util.ArrayList;

import org.dom4j.Element;

/*
 * not use this approach currently
 */
public class Transaction {
	
	Element tNode;
	ArrayList<Rule> sNode;
	
	public Transaction(Element self) {
		tNode = self;
		sNode = new ArrayList<>();
	}
	
	public void addRuleNode(Rule son) {
		sNode.add(son);
	}
	
	public ArrayList<Rule> getRuleList() {
		return sNode;
	}
	
	public Element getElement() {
		return tNode;
	}
}
